import service from "./../utils/request.js";

/**
 * 获取主页秒杀商品轮播数据
 * 
 */
export function getSaleGoodsList(data) {
    return service("/saleGoodsList", {
        method: 'GET',
        data: data
    });
}

/**
 * 获取主页单品促销数据
 * 
 */
export function getSingleItemGoodsList(data) {
    return service("/singleItemGoodsList", {
        method: 'GET',
        data: data
    });
}

/**
 * 获取主页广告轮播数据
 * 
 */
export function getSwiperList(data) {
    return service("/swiperList", {
        method: 'GET',
        data: data
    });
}

/**
 * 获取主页商品列表数据
 * 
 */
export function getGoodsList(data) {
    return service("/goodsList", {
        method: 'GET',
        data: data
    });
}

/**
 * 获取城市信息
 */
export function getCity() {
    return request.get('city_list', {}, {
        noAuth: true
    });
}